<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>网页收藏专家 | 网络收藏夹 | www.5789.com | 摆脱忘记网址的烦恼</title>
  <%= javascript_include_tag 'jquery' %>
  <%= javascript_include_tag 'application' %>
  <%= stylesheet_link_tag 'myurl' %>
</head>
<style>
    a {text-decoration:none}
</style>
<body>
<div id='update_tag' style="display:none"></div>
<div id="main">
    <%= render :partial=>"/share/top"%>
    <p class="folder_font" style="font-size:16px;margin-top:15px;"></p>
    <div id="folder">
        <% round_div "100%" do%>
            <span class="folder_font">将访问过的网址收藏在www.5789.com，从此再也不怕忘记网址了。遇到心仪的网站，迅猛收藏起来！</span>
            <form action="/main/myurl">
               <table>
               <tr>
                    <td><input id="url" name="url" size="70" type="text" class="biginput" value="http://"/></td>
                    <td><input name="commit" type="submit" value="收藏" class="bigbutton"/></td>
               </tr> 
               </table>
            </form>
        <% end%>
    </div>
    
<!--    
    <% round_div "100%" do%>
    <iframe style="margin:5px 0px 0px 0px" id="baiduframe" marginwidth="0" marginheight="0" scrolling="no"
      framespacing="0" vspace="0" hspace="0" frameborder="0" width="980" height="75" 
      src="http://unstat.baidu.com/bdun.bsc?tn=yangguang86_pg&cv=0&cid=1207328&csid=261&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=265&sropls=1,2,3,4,5,6,7,9,10,99&insiteurl=&defid=99&kwgp=0">
    </iframe>
    <% end %>
-->
  
    <table width=100%>
        <tr>
            <td width=65% valign='top' style="padding-right:5px">
                <%= yield%>
            </td>
            <td valign='top'>    
                <% round_table "100%", "百度搜索" do%>
                <br/>
                <iframe id="baiduframe" marginwidth="0" marginheight="0" scrolling="no"
  framespacing="0" vspace="0" hspace="0" frameborder="0" width="360" height="60" 
  src="http://unstat.baidu.com/bdun.bsc?tn=jingfang33_pg&cv=0&cid=1249666&csid=222&bgcr=ffffff&urlcr=0000ff&tbsz=210&defid=2&kwgp=0">
</iframe>
                
                <% end %>
                
                <% round_table "100%", "常用站点" do%>
                <div id="famous">
                    <% if session[:user] && session[:user].hots.size > 0%>
                        <% for hot in session[:user].hots%>
                            <a target="_blank" href="<%=hot.address%>"><%= hot.name%></a> 
                        <% end %>
                    <% else %>
                        <% for site in Site.find(:all, :conditions=>"label_id = 100")%>
                            <a target="_blank" href="<%=site.address%>"><%=site.name%></a>
                        <% end %>
                        
                    <% end %>
                    <br/>
                    <span style="color:gray">点击<a style="color:blue;margin:0px;" href="/hots/list">定制</a>可以把自己经常访问的站放在这里!</span>
                </div>
                <% end %>
      
      
                <div>
                    <% round_table "100%", "最近活跃用户" do%>
                        <table width=100% height=200px class="admin">
                            <% for recent in Recent.find(:all, :order=>"id desc", :limit=>6)%>
                            <tr>
                                <td>
                                 <div class="recent">
                                    <span class="recent_nickname"><%= recent.user.nickname%></span><%= distance_of_time_in_words1 recent.created_at%>前<%= {1=>"收藏了", 2=>"分享了", 3=>recent.desc}[recent.kind]%>
                                    <span class="recent_url">
                                    <% if recent.kind == 1%>
                                        <%if recent.weburl.desc && recent.weburl.desc.size > 0%>
                                            <a href="<%= recent.weburl.address_real%>" target="_blank"><%= truncate(recent.weburl.desc, 25) %></a>
                                        <% else %>
                                            <a href="<%= recent.weburl.address_real%>" target="_blank"><%= truncate(recent.weburl.address, 25) %></a>
                                        <% end %>
                                    <% elsif recent.kind ==2 %>
                                        <%if recent.recommand.name && recent.recommand.name.size > 0%>
                                            <a href="<%= recent.recommand.address%>" target="_blank"><%= truncate(recent.recommand.name, 25) %></a>
                                        <% else %>
                                            <a href="<%= recent.recommand.address%>" target="_blank"><%= truncate(recent.recommand.address, 25) %></a>
                                        <% end %>
                                        
                                    <% end %>
                                    <span>
                                  </div>  
                                </td>
                            </tr>
                            <% end %>
                        </table>
                    <% end %>
                </div>
                
                
                <div>
                    <% round_table "100%", "点击排行" do%>
                        <table width=100% class="admin">
                        <% index = 1%>
                        <% for active in Site.find(:all, :order=>"ticks desc", :limit=>10)%>
                        <tr class="tg<%=index%2 + 1%>">
                            <td height=28px>
                            <div class="active">
                                <div class="active_site"><%=index%>. <span class="active_link"><a href="<%=active.address%>" target="_blank"><%=truncate(active.name, 20)%> (<%=active.ticks%>)</a></span></div>
                                <div class="active_function">
                                    <%= link_to "收藏", :controller=>"main", :action=>"myurl", :title=>active.desc, :url=>active.address, :rid=>active.id%>
                                </div>
                            </div>
                            </td>
                        </tr>
                        <% index += 1%>
                        <% end %>
                        </table>
                    <% end %>
                </div>
            </td>
     </tr>
   </table>    
   
   
    <div id="tag">
        <% round_div "100%" do%>
            <% for tag in @tags%>
                <% if order(@serial, tag['c'].to_i)<2%>
                    <% c = "font1"%>
                <% elsif order(@serial, tag['c'].to_i) <5%>
                    <% c = "font2"%>
                <% else%>
                    <% c = "font3"%>
                <% end %>
                <a class="<%=c%>" href="/main/tag/<%=tag.id%>"><%= tag.name%></a> 
            <% end %>
        <% end %>
    </div> 
    
    
    
    <div id="foot">
        Copyright 2009 www.myurl.com All Rights Reserved.黑ICP备09059090号<br/>
                    
    </div>
</div>

<div style="display:none">
<script type="text/javascript" src="http://js.tongji.linezing.com/1274313/tongji.js"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/1274313/tongji.gif"/></a></noscript>
</div>

</body>
</html>

<script>
    $(document).ready(function(){
        $("#famous a").click(function(){
            $('#update_tag').load("/main/tick?url=" + encodeURIComponent(this));
        })
    }); 
    
</script>

<!--
<script language="javascript" type="text/javascript" id="JK_SCRIPT_650" src="http://newloader.jieku.com/loader.php?aid=650&pid=31&cid=2&sid=252&uid=3780&mid=1&w=80&h=120" charset="utf-8" width="80" height="120"></script>
-->